package com.scujj.cs6.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.scujj.cs6.model.entity.Comment;
import com.scujj.cs6.model.vo.CommentVo;
import com.scujj.cs6.model.vo.MyCommentVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author FlanChan
* @description 针对表【comment】的数据库操作Mapper
* @createDate 2025-03-25 21:21:24
* @Entity com.scujj.cs6.entity.Comment
*/
public interface CommentMapper extends BaseMapper<Comment> {

    List<CommentVo> selectCommentsWithUserByAnswerId(@Param("id") Long id ,  @Param("page") int page, @Param("size") int size);

    List<MyCommentVo> selectMyCommentsByUserId(@Param("id") Long id, @Param("page") int page, @Param("size") int size);
}




